package com.zcf.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhouzhuang
 * @since 2018-11-28
 */
public class Coupon extends Model<Coupon> {

	private static final long serialVersionUID = 1L;
	@TableId(value = "id")
	private String id;
	private Double money;
	/**
	 * 优惠劵截止时间
	 */
	private String stopTime;
	private String addtime;
	/**
	 * 1 : 满减 2：通用
	 */
	private Double total;
	private String name;
	@TableField(exist = false)
	private int text;
	@TableField(exist = false)
	private String console;
	@TableField(exist = false)
	private String dinName;

	public String getAddtime() {
		return addtime;
	}

	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}

	public String getDinName() {
		return dinName;
	}

	public void setDinName(String dinName) {
		this.dinName = dinName;
	}

	public String getConsole() {
		return console;
	}

	public void setConsole(String console) {
		this.console = console;
	}

	public int getText() {
		return text;
	}

	public void setText(int text) {
		this.text = text;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	private String diningId;

	public String getDiningId() {
		return diningId;
	}

	public void setDiningId(String diningId) {
		this.diningId = diningId;
	}

	private Integer type;
	private String createtime;
	private Integer nums;
	private String notice;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getStopTime() {
		return stopTime;
	}

	public void setStopTime(String stopTime) {
		this.stopTime = stopTime;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public Integer getNums() {
		return nums;
	}

	public void setNums(Integer nums) {
		this.nums = nums;
	}

	public String getNotice() {
		return notice;
	}

	public void setNotice(String notice) {
		this.notice = notice;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Coupon{" + "id=" + id + ", money=" + money + ", stopTime=" + stopTime + ", type=" + type
				+ ", createtime=" + createtime + ", nums=" + nums + ", notice=" + notice + ", total=" + total
				+ ", diningId=" + diningId + "}";
	}
}
